package cn.itcast.feign.client;

import cn.itcast.hmall.pojo.user.Address;
import cn.itcast.hmall.pojo.user.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 用户服务 feign接口
 *
 * TODO 需要的接口自己补充哦
 */
@FeignClient("userservice")
public interface UserClient {
    @GetMapping("/address/{addressId}")
    Address findByAddressId(@PathVariable("addressId")String id);
    @GetMapping("/address/find")
    User findUserBySystemId(@RequestParam("id") Long id);
    @PostMapping("/address/update")
    void changeMonye(@RequestBody User user);
}
